package com.zcxy360.sandtable.domain;

import com.zcxy360.sandtable.domain.UnitProblem;
import com.zcxy360.sandtable.domain.UnitProblemExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UnitProblemMapper {
    long countByExample(UnitProblemExample example);

    int deleteByExample(UnitProblemExample example);

    int deleteByPrimaryKey(@Param("courseId") Integer courseId, @Param("userId") Integer userId, @Param("unitId") Integer unitId, @Param("vproblemId") Integer vproblemId);

    int insert(UnitProblem record);

    int insertSelective(UnitProblem record);

    List<UnitProblem> selectByExample(UnitProblemExample example);

    UnitProblem selectByPrimaryKey(@Param("courseId") Integer courseId, @Param("userId") Integer userId, @Param("unitId") Integer unitId, @Param("vproblemId") Integer vproblemId);

    int updateByExampleSelective(@Param("record") UnitProblem record, @Param("example") UnitProblemExample example);

    int updateByExample(@Param("record") UnitProblem record, @Param("example") UnitProblemExample example);

    int updateByPrimaryKeySelective(UnitProblem record);

    int updateByPrimaryKey(UnitProblem record);
}